<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>分类: 技术教程 | 小小程序员</title><meta name="author" content="十一星野"><meta name="copyright" content="十一星野"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="本文主要以图文的形式讲解 mall 项目所需环境在 windows 下的安装，主要包括 IDEA、Mysql、Redis、Mongodb、RabbitMQ、Elasticsearch、Logstash、Kibana、OSS。  #👍 相关视频教程mall项目后端开发环境搭建open in new window #IDEA 关于IDEA的安装与使用请参考：https:&#x2F;&#x2F;github.com&#x2F;j">
<meta property="og:type" content="article">
<meta property="og:title" content="mall在Windows环境下的部署">
<meta property="og:url" content="https://ko25891wan.gitlab.io/2024/01/820726ead406.html">
<meta property="og:site_name" content="小小程序员">
<meta property="og:description" content="本文主要以图文的形式讲解 mall 项目所需环境在 windows 下的安装，主要包括 IDEA、Mysql、Redis、Mongodb、RabbitMQ、Elasticsearch、Logstash、Kibana、OSS。  #👍 相关视频教程mall项目后端开发环境搭建open in new window #IDEA 关于IDEA的安装与使用请参考：https:&#x2F;&#x2F;github.com&#x2F;j">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png">
<meta property="article:published_time" content="2024-01-21T09:30:43.000Z">
<meta property="article:modified_time" content="2024-02-02T13:40:55.046Z">
<meta property="article:author" content="十一星野">
<meta property="article:tag" content="宅男,热血">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://ko25891wan.gitlab.io/2024/01/820726ead406.html"><link rel="preconnect" href="//fastly.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.5.1/css/all.min.css"><link rel="stylesheet" href="https://cdn.staticfile.org/fancyapps-ui/5.0.32/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"找不到您查询的内容：${query}","hits_stats":"共找到 ${hits} 篇文章"}},
  translate: {"defaultEncoding":1,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"简"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":200},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: true,
    post: true
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.staticfile.org/egjs-infinitegrid/4.11.0/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: true,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '分类: 技术教程',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2024-02-02 21:40:55'
}</script><script>(win=>{
      win.saveToLocal = {
        set: (key, value, ttl) => {
          if (ttl === 0) return
          const now = Date.now()
          const expiry = now + ttl * 86400000
          const item = {
            value,
            expiry
          }
          localStorage.setItem(key, JSON.stringify(item))
        },
      
        get: key => {
          const itemStr = localStorage.getItem(key)
      
          if (!itemStr) {
            return undefined
          }
          const item = JSON.parse(itemStr)
          const now = Date.now()
      
          if (now > item.expiry) {
            localStorage.removeItem(key)
            return undefined
          }
          return item.value
        }
      }
    
      win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        script.onerror = reject
        script.onload = script.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          script.onload = script.onreadystatechange = null
          resolve()
        }

        Object.keys(attr).forEach(key => {
          script.setAttribute(key, attr[key])
        })

        document.head.appendChild(script)
      })
    
      win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onerror = reject
        link.onload = link.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          link.onload = link.onreadystatechange = null
          resolve()
        }
        document.head.appendChild(link)
      })
    
      win.activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
        if (t === 'dark') activateDarkMode()
        else if (t === 'light') activateLightMode()
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
      const detectApple = () => {
        if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
          document.documentElement.classList.add('apple')
        }
      }
      detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.3.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><script>(()=>{
  const $loadingBox = document.getElementById('loading-box')
  const $body = document.body
  const preloader = {
    endLoading: () => {
      $body.style.overflow = ''
      $loadingBox.classList.add('loaded')
    },
    initLoading: () => {
      $body.style.overflow = 'hidden'
      $loadingBox.classList.remove('loaded')
    }
  }

  preloader.initLoading()
  window.addEventListener('load',() => { preloader.endLoading() })

  if (false) {
    document.addEventListener('pjax:send', () => { preloader.initLoading() })
    document.addEventListener('pjax:complete', () => { preloader.endLoading() })
  }
})()</script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">120</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">22</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tools"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/md_editor/"><i class="fa-fw fas fa-pen"></i><span> MDEditor_my</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog-info"><a href="/" title="小小程序员"><span class="site-name">小小程序员</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tools"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/md_editor/"><i class="fa-fw fas fa-pen"></i><span> MDEditor_my</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div id="post"><div id="post-info"><h1 class="post-title">mall在Windows环境下的部署</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-01-21T09:30:43.000Z" title="发表于 2024-01-21 17:30:43">2024-01-21</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-02-02T13:40:55.046Z" title="更新于 2024-02-02 21:40:55">2024-02-02</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%8A%80%E6%9C%AF%E6%95%99%E7%A8%8B/">技术教程</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%8A%80%E6%9C%AF%E6%95%99%E7%A8%8B/mall/">mall</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%8A%80%E6%9C%AF%E6%95%99%E7%A8%8B/mall/%E9%83%A8%E7%BD%B2%E7%AF%87/">部署篇</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">1.7k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>6分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="mall在Windows环境下的部署"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div><article class="post-content" id="article-container"><blockquote>
<p>本文主要以图文的形式讲解 mall 项目所需环境在 windows 下的安装，主要包括 IDEA、Mysql、Redis、Mongodb、RabbitMQ、Elasticsearch、Logstash、Kibana、OSS。</p>
</blockquote>
<h2 id="👍-相关视频教程"><a href="#👍-相关视频教程" class="headerlink" title="#👍 相关视频教程"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#%F0%9F%91%8D-%E7%9B%B8%E5%85%B3%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B">#</a>👍 相关视频教程</h2><p><a target="_blank" rel="noopener" href="https://t.zsxq.com/0epBUTyox">mall项目后端开发环境搭建open in new window</a></p>
<h2 id="IDEA"><a href="#IDEA" class="headerlink" title="#IDEA"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#idea">#</a>IDEA</h2><ul>
<li><p>关于IDEA的安装与使用请参考：<a target="_blank" rel="noopener" href="https://github.com/judasn/IntelliJ-IDEA-Tutorial">https://github.com/judasn/IntelliJ-IDEA-Tutorial</a></p>
</li>
<li><p>搜索插件仓库，安装插件<code>Lombok</code>；</p>
</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_01-a5fa6444.png"></p>
<ul>
<li>将项目下载到本地，然后直接打开。</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_02-b59aa688.png"></p>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_03-848541df.png"></p>
<h2 id="Mysql"><a href="#Mysql" class="headerlink" title="#Mysql"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#mysql">#</a>Mysql</h2><ul>
<li><p>下载并安装mysql<code>5.7</code>版本，下载地址：<a target="_blank" rel="noopener" href="https://dev.mysql.com/downloads/installer/">https://dev.mysql.com/downloads/installer/</a></p>
</li>
<li><p>设置数据库帐号密码：root root</p>
</li>
<li><p>下载并安装客户端连接工具Navicat，下载地址：<a target="_blank" rel="noopener" href="http://www.formysql.com/xiazai.html">http://www.formysql.com/xiazai.html</a></p>
</li>
<li><p>创建数据库<code>mall</code>，导入项目<code>document/sql</code>文件夹下的<code>mall.sql</code>文件，初始化数据。</p>
</li>
</ul>
<h2 id="Redis"><a href="#Redis" class="headerlink" title="#Redis"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#redis">#</a>Redis</h2><ul>
<li>由于Redis官方并没有提供Windows版本，第三方提供的最新版本为<code>5.0</code>，下载地址：<a target="_blank" rel="noopener" href="https://github.com/tporadowski/redis/releases/">https://github.com/tporadowski/redis/releases/</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_04-c813849e.png"></p>
<ul>
<li>下载完后解压到指定目录；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_05-524c83dd.png"></p>
<ul>
<li>在当前地址栏输入cmd命令后，使用如下命令可以启动Redis服务；</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">redis-server.exe redis.windows.conf</span><br></pre></td></tr></table></figure>

<ul>
<li>如果你想把Redis注册为系统服务来使用的话可以试试下面的命令。</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"># 安装为服务</span><br><span class="line">redis-server --service-install redis.windows.conf</span><br><span class="line"># 启动服务</span><br><span class="line">redis-server --service-start </span><br><span class="line"># 停止服务</span><br><span class="line">redis-server --service-stop</span><br><span class="line"># 卸载服务</span><br><span class="line">redis-server --service-uninstall</span><br></pre></td></tr></table></figure>

<h2 id="Elasticsearch"><a href="#Elasticsearch" class="headerlink" title="#Elasticsearch"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#elasticsearch">#</a>Elasticsearch</h2><ul>
<li>下载Elasticsearch<code>7.17.3</code>版本的zip包，并解压到指定目录，下载地址：<a target="_blank" rel="noopener" href="https://www.elastic.co/cn/downloads/past-releases/elasticsearch-7-17-3">https://www.elastic.co/cn/downloads/past-releases/elasticsearch-7-17-3</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_07-3f749d80.png"></p>
<ul>
<li>安装中文分词器，注意下载与Elasticsearch对应的版本，下载地址：<a target="_blank" rel="noopener" href="https://github.com/medcl/elasticsearch-analysis-ik/releases">https://github.com/medcl/elasticsearch-analysis-ik/releases</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_08-a3e22f93.png"></p>
<ul>
<li>下载完成后解压到Elasticsearch的<code>plugins</code>目录下；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_08_2-943c675d.png"></p>
<ul>
<li>运行bin目录下的<code>elasticsearch.bat</code>启动Elasticsearch服务。</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_10-154a4b8a.png"></p>
<h2 id="Kibana"><a href="#Kibana" class="headerlink" title="#Kibana"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#kibana">#</a>Kibana</h2><ul>
<li>下载Kibana，作为访问Elasticsearch的客户端，请下载<code>7.17.3</code>版本的zip包，并解压到指定目录，下载地址：<a target="_blank" rel="noopener" href="https://www.elastic.co/cn/downloads/past-releases/kibana-7-17-3">https://www.elastic.co/cn/downloads/past-releases/kibana-7-17-3</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_11-0a25cd76.png"></p>
<ul>
<li>运行bin目录下的<code>kibana.bat</code>，启动Kibana服务；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_12-5c098822.png"></p>
<ul>
<li>打开Kibana的用户界面，访问地址：<a target="_blank" rel="noopener" href="http://localhost:5601/">http://localhost:5601</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_13-e272f8a6.png"></p>
<h2 id="Logstash"><a href="#Logstash" class="headerlink" title="#Logstash"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#logstash">#</a>Logstash</h2><ul>
<li>下载Logstash，用于收集日志，请下载<code>7.17.3</code>版本的zip包，并解压到指定目录，下载地址：<a target="_blank" rel="noopener" href="https://www.elastic.co/cn/downloads/past-releases/logstash-7-17-3">https://www.elastic.co/cn/downloads/past-releases/logstash-7-17-3</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_14-e09f51ab.png"></p>
<ul>
<li>将Logstash的配置文件<code>logstash.conf</code>拷贝到安装目录的<code>bin</code>目录下，配置文件地址：<a target="_blank" rel="noopener" href="https://github.com/macrozheng/mall/blob/master/document/elk/logstash.conf">https://github.com/macrozheng/mall/blob/master/document/elk/logstash.conf</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_15-584dfa2f.png"></p>
<ul>
<li>注意该版本最低要求<code>JDK 11</code>，需要自行安装，然后在环境变量中进行如下配置；</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">LS_JAVA_HOME=D:\developer\env\Java\jdk-11.0.14.1</span><br></pre></td></tr></table></figure>

<ul>
<li>Logstash需要安装<code>json_lines</code>插件；</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">logstash-plugin install logstash-codec-json_lines</span><br></pre></td></tr></table></figure>

<ul>
<li>运行bin目录下的<code>logstash.bat</code>，启动Logstash服务，启动命令如下。</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">logstash -f logstash.conf</span><br></pre></td></tr></table></figure>

<h2 id="MongoDB"><a href="#MongoDB" class="headerlink" title="#MongoDB"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#mongodb">#</a>MongoDB</h2><ul>
<li>下载MongoDB安装包，选择<code>Windows</code>社区版安装，下载地址：<a target="_blank" rel="noopener" href="https://www.mongodb.com/download-center/community">https://www.mongodb.com/download-center/community</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_16-b4b5dd6c.png"></p>
<ul>
<li>运行MongoDB安装包并选择自定义安装，设置好安装路径；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_17-b392d371.png"></p>
<ul>
<li>配置MongoDB，让MongoDB作为服务运行，并配置好数据目录和日志目录；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_18-f405b192.png"></p>
<ul>
<li>取消MongoDB Compass的安装选项（不取消安装极慢），需要可自行安装；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_19-36f57f33.png"></p>
<ul>
<li>双击<code>mongo.exe</code>可以运行MongoDB自带客户端，操作MongoDB；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_20-d5fa931b.png"></p>
<ul>
<li>连接成功后会显示如下信息；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_25_0-72489cba.png"></p>
<ul>
<li>如果需要移除MongoDB服务，只需使用管理员权限运行<code>cmd</code>工具，并输入如下命令。</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sc.exe delete MongoDB</span><br></pre></td></tr></table></figure>

<h2 id="RabbitMQ"><a href="#RabbitMQ" class="headerlink" title="#RabbitMQ"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#rabbitmq">#</a>RabbitMQ</h2><ul>
<li>下载Erlang的<code>OPT 25</code>，下载地址：<a target="_blank" rel="noopener" href="https://erlang.org/download/otp_versions_tree.html">https://erlang.org/download/otp_versions_tree.html</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_25-5052d54b.png"></p>
<ul>
<li>安装Erlang，直接双击安装包安装即可；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_26_0-41382028.png"></p>
<ul>
<li>下载RabbitMQ的<code>3.10.5</code>版本，下载地址：<a target="_blank" rel="noopener" href="https://github.com/rabbitmq/rabbitmq-server/releases">https://github.com/rabbitmq/rabbitmq-server/releases</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_26-90f0c03c.png"></p>
<ul>
<li>下载文件为<code>rabbitmq-server-3.10.5.exe</code>，直接双击安装包安装即可；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_27-aecf7049.png"></p>
<ul>
<li>安装完成后，进入RabbitMQ安装目录下的sbin目录；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_rabbitmq_start_06-b6308839.png"></p>
<ul>
<li>在地址栏输入cmd并回车启动命令行，然后输入以下命令启动管理功能：</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">rabbitmq-plugins enable rabbitmq_management</span><br></pre></td></tr></table></figure>

<ul>
<li>访问RabbitMQ管理页面地址，查看是否安装成功，默认账号密码为<code>guest:guest</code>，访问地址：<a target="_blank" rel="noopener" href="http://localhost:15672/">http://localhost:15672/</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_rabbitmq_start_07-568a9b20.png"></p>
<ul>
<li>创建一个我们需要使用的帐号<code>mall:mall</code>，并设置其角色为管理员；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_rabbitmq_start_08-53701273.png"></p>
<ul>
<li>创建一个新的虚拟host为，名称为<code>/mall</code>；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_rabbitmq_start_09-3d6932ed.png"></p>
<ul>
<li>点击mall用户进入用户配置页面；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_rabbitmq_start_10-9a412dbb.png"></p>
<ul>
<li>给mall用户配置该虚拟host的权限，至此，RabbitMQ的配置完成。</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_minio_start_01-ccbb9f35.png"></p>
<h2 id="MinIO"><a href="#MinIO" class="headerlink" title="#MinIO"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#minio">#</a>MinIO</h2><ul>
<li>下载MinIO在Windows下的安装包，下载地址：<a target="_blank" rel="noopener" href="https://dl.min.io/server/minio/release/windows-amd64/minio.exe">https://dl.min.io/server/minio/release/windows-amd64/minio.exe</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_minio_start_02-acfaad82.png"></p>
<ul>
<li>下载完成后创建MinIO的数据存储目录，并使用如下启动命令MinIO服务；</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">minio.exe server D:\developer\env\minio\data --console-address &quot;:9001&quot;</span><br></pre></td></tr></table></figure>

<ul>
<li>此时MinIO的API将运行在<code>9000</code>端口，MinIO Console管理页面将运行在<code>9001</code>端口；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_minio_start_03-4ebc1425.png"></p>
<ul>
<li>MinIO服务运行成功后就可访问MinIO Console的管理界面了，输入账号密码<code>minioadmin:minioadmin</code>即可登录，访问地址：<a target="_blank" rel="noopener" href="http://localhost:9001/">http://localhost:9001</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_minio_start_04-df874596.png"></p>
<ul>
<li>看下MinIO Console的左侧菜单，不仅支持了存储桶、文件的管理，还增加了用户、权限、监控等管理功能；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_35-5d57712f.png"></p>
<h2 id="OSS"><a href="#OSS" class="headerlink" title="#OSS"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#oss">#</a>OSS</h2><blockquote>
<p>注意：mall项目能同时支持OSS和MinIO两种对象存储，如果已经安装了MinIO，可以不使用OSS。</p>
</blockquote>
<h3 id="开通OSS服务"><a href="#开通OSS服务" class="headerlink" title="#开通OSS服务"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#%E5%BC%80%E9%80%9Aoss%E6%9C%8D%E5%8A%A1">#</a>开通OSS服务</h3><ul>
<li>登录阿里云官网；</li>
<li>将鼠标移至产品标签页，单击对象存储 OSS，打开OSS 产品详情页面；</li>
<li>在OSS产品详情页，单击立即开通。</li>
</ul>
<h3 id="创建存储空间"><a href="#创建存储空间" class="headerlink" title="#创建存储空间"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#%E5%88%9B%E5%BB%BA%E5%AD%98%E5%82%A8%E7%A9%BA%E9%97%B4">#</a>创建存储空间</h3><ul>
<li>点击网页右上角控制台按钮进入控制台；</li>
</ul>
<p><img src=""></p>
<ul>
<li>选择我的云产品中的对象存储OSS；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_37-76280073.png"></p>
<ul>
<li>点击左侧存储空间的加号新建存储空间；</li>
</ul>
<p><img src=""></p>
<ul>
<li>新建存储空间并设置读写权限为公共读。</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_38-51f50bb5.png"></p>
<h3 id="跨域资源共享（CORS）的设置"><a href="#跨域资源共享（CORS）的设置" class="headerlink" title="#跨域资源共享（CORS）的设置"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#%E8%B7%A8%E5%9F%9F%E8%B5%84%E6%BA%90%E5%85%B1%E4%BA%AB-cors-%E7%9A%84%E8%AE%BE%E7%BD%AE">#</a>跨域资源共享（CORS）的设置</h3><ul>
<li>选择一个存储空间，打开其基础设置；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/mall_windows_deploy_41-65656de0.png"></p>
<ul>
<li>点击跨越设置的设置按钮；</li>
</ul>
<p><img src=""></p>
<ul>
<li>点击创建规则；</li>
</ul>
<p><img src=""></p>
<ul>
<li>进行跨域规则设置；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_mall_windows_deploy_01-3d024788.png"></p>
<h2 id="mall-admin"><a href="#mall-admin" class="headerlink" title="#mall-admin"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#mall-admin">#</a>mall-admin</h2><ul>
<li>启动项目：直接运行<code>com.macro.mall.MallAdminApplication</code>的main方法即可；</li>
<li>接口文档地址：<a target="_blank" rel="noopener" href="http://localhost:8080/swagger-ui/">http://localhost:8080/swagger-ui/</a></li>
</ul>
<h2 id="mall-search"><a href="#mall-search" class="headerlink" title="#mall-search"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#mall-search">#</a>mall-search</h2><ul>
<li>启动项目：直接运行<code>com.macro.mall.search.MallSearchApplication</code>的main方法即可；</li>
<li>接口文档地址：<a target="_blank" rel="noopener" href="http://localhost:8081/swagger-ui/">http://localhost:8081/swagger-ui/</a></li>
<li>使用前需要先调用接口导入数据；<a target="_blank" rel="noopener" href="http://localhost:8081/esProduct/importAll">http://localhost:8081/esProduct/importAll</a></li>
<li>如出现无法启动的问题，可以先删除Elasticsearch里面的数据再启动</li>
</ul>
<h2 id="mall-portal"><a href="#mall-portal" class="headerlink" title="#mall-portal"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#mall-portal">#</a>mall-portal</h2><ul>
<li>启动mall-portal项目：直接运行<code>com.macro.mall.portal.MallPortalApplication</code>的main方法即可；</li>
<li>接口文档地址：<a target="_blank" rel="noopener" href="http://localhost:8085/swagger-ui/">http://localhost:8085/swagger-ui/</a></li>
</ul>
<h2 id="接口文档"><a href="#接口文档" class="headerlink" title="#接口文档"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/deploy/mall_deploy_windows.html#%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3">#</a>接口文档</h2><blockquote>
<p>由于mall项目中的大部分接口需要登录认证之后才能访问，这里以mall-admin为例，介绍下接口文档的访问。</p>
</blockquote>
<ul>
<li>成功启动<code>mall-admin</code>模块后，我们可以通过该地址来访问接口文档：<a target="_blank" rel="noopener" href="http://localhost:8080/swagger-ui/">http://localhost:8080/swagger-ui/</a></li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_mall_windows_deploy_02-195a3300.png"></p>
<ul>
<li>接下来我们需要访问登录接口<code>/admin/login</code>来获取token；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_mall_windows_deploy_03-e33d7bcd.png"></p>
<ul>
<li>登录成功后，返回结果中将返回token和tokenHead；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_mall_windows_deploy_04-88c44270.png"></p>
<ul>
<li>然后点击Swagger文档的<code>Authorize</code>按钮，输入<code>tokenHead</code>+<code>token</code>拼接的认证请求头，注意<code>tokenHead</code>后面有个空格；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_mall_windows_deploy_05-d59b5125.png"></p>
<ul>
<li>之后调用需要登录认证的接口，就可以正常访问了；</li>
</ul>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/re_mall_windows_deploy_06-83846569.png"></p>
<ul>
<li>对于<code>mall-portal</code>模块的接口调用也是一样的，登录获取token的接口为<code>/sso/login</code>。<br><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/20240202175446.png" alt="image.png"></li>
</ul>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://ko25891wan.gitlab.io">十一星野</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://ko25891wan.gitlab.io/2024/01/820726ead406.html">https://ko25891wan.gitlab.io/2024/01/820726ead406.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://ko25891wan.gitlab.io" target="_blank">小小程序员</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2024/01/514899e12178.html" title="redis 常用读写策略"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">redis 常用读写策略</div></div></a></div><div class="next-post pull-right"><a href="/2024/01/e8c6aded4201.html" title="mall在Linux环境下的部署（基于Docker容器）"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">mall在Linux环境下的部署（基于Docker容器）</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">十一星野</div><div class="author-info__description">归途也还可爱</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">120</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">22</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io"><i class="fab fa-github"></i><span>关注我</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io" target="_blank" title="Gitlab"><i class="fab fa-gitlab" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:ko25891wan@outlook.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%F0%9F%91%8D-%E7%9B%B8%E5%85%B3%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B"><span class="toc-number">1.</span> <span class="toc-text">👍 相关视频教程</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#IDEA"><span class="toc-number">2.</span> <span class="toc-text">IDEA</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Mysql"><span class="toc-number">3.</span> <span class="toc-text">Mysql</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Redis"><span class="toc-number">4.</span> <span class="toc-text">Redis</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Elasticsearch"><span class="toc-number">5.</span> <span class="toc-text">Elasticsearch</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Kibana"><span class="toc-number">6.</span> <span class="toc-text">Kibana</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Logstash"><span class="toc-number">7.</span> <span class="toc-text">Logstash</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#MongoDB"><span class="toc-number">8.</span> <span class="toc-text">MongoDB</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#RabbitMQ"><span class="toc-number">9.</span> <span class="toc-text">RabbitMQ</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#MinIO"><span class="toc-number">10.</span> <span class="toc-text">MinIO</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#OSS"><span class="toc-number">11.</span> <span class="toc-text">OSS</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%BC%80%E9%80%9AOSS%E6%9C%8D%E5%8A%A1"><span class="toc-number">11.1.</span> <span class="toc-text">开通OSS服务</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%88%9B%E5%BB%BA%E5%AD%98%E5%82%A8%E7%A9%BA%E9%97%B4"><span class="toc-number">11.2.</span> <span class="toc-text">创建存储空间</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%B7%A8%E5%9F%9F%E8%B5%84%E6%BA%90%E5%85%B1%E4%BA%AB%EF%BC%88CORS%EF%BC%89%E7%9A%84%E8%AE%BE%E7%BD%AE"><span class="toc-number">11.3.</span> <span class="toc-text">跨域资源共享（CORS）的设置</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#mall-admin"><span class="toc-number">12.</span> <span class="toc-text">mall-admin</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#mall-search"><span class="toc-number">13.</span> <span class="toc-text">mall-search</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#mall-portal"><span class="toc-number">14.</span> <span class="toc-text">mall-portal</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3"><span class="toc-number">15.</span> <span class="toc-text">接口文档</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/02/c60470b9a892.html" title="Java集合使用注意事项总结">Java集合使用注意事项总结</a><time datetime="2024-02-03T04:58:22.000Z" title="发表于 2024-02-03 12:58:22">2024-02-03</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/02/81fb7a201f29.html" title="无题">无题</a><time datetime="2024-02-03T03:15:31.812Z" title="发表于 2024-02-03 11:15:31">2024-02-03</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/5737c1ec69a9.html" title="Wed Jan 17 2024 00:00:00 GMT+0800 (中国标准时间)">Wed Jan 17 2024 00:00:00 GMT+0800 (中国标准时间)</a><time datetime="2024-01-31T06:56:16.000Z" title="发表于 2024-01-31 14:56:16">2024-01-31</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/f510db7d2f19.html" title="Spring常见面试题总结">Spring常见面试题总结</a><time datetime="2024-01-31T06:55:58.000Z" title="发表于 2024-01-31 14:55:58">2024-01-31</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/9be065e9f288.html" title="redis 面试">redis 面试</a><time datetime="2024-01-31T06:55:55.000Z" title="发表于 2024-01-31 14:55:55">2024-01-31</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2023 - 2024 By 十一星野</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">简</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.staticfile.org/fancyapps-ui/5.0.32/fancybox/fancybox.umd.min.js"></script><script src="https://cdn.staticfile.org/instant.page/5.2.0/instantpage.min.js" type="module"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js"></script></div></div></body></html>